// import '@vant/touch-emulator'
import 'vant/lib/index.css'
import Vue from 'vue';
import { Lazyload, Button } from 'vant'

const componentMap = [
    // Button,
]

export const setupBoya = () => {
    Vue.use(Lazyload);
    componentMap.forEach(component => {
        let name = component.name;
        if (name) {
            name = name.replace('van-', '');
            let newname = name.charAt(0).toUpperCase() + name.slice(1)
            Vue.component(newname, component);
        }
    })
}